<?php

namespace Admin\Form;

use Zend\Form\Annotation;

/**
 * @Annotation\Hydrator("Zend\Stdlib\Hydrator\ObjectProperty")
 * @Annotation\Name("form_store_document")
 */
class StoringBookForm {

    /**
     * @Annotation\Required(false)
     * @Annotation\Attributes({"type":"hidden"})
     */
    public $bookID;

    /**
     * @Annotation\Type("Zend\Form\Element\Text")
     * @Annotation\Required(true)
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Validator({"name":"StringLength", "options":{"min":"1","max":"30"}})
     * @Annotation\Validator({"name":"Regex", "options":{"pattern":"/^[0-9]/"}})
     * @Annotation\Options({"label":"Mã vạch:"})
     * @Annotation\Attributes({"id":"bookBarcode","class":"bookBarcode"})
     */
    public $bookBarcode;

    /**
     * @Annotation\Type("Zend\Form\Element\Submit")
     * @Annotation\Required(true)
     * @Annotation\Attributes({"value":"Lưu Trữ"})
     * @Annotation\Attributes({"id":"storeBook","class":"storeBook"})
     */
    public $storeBook;

}

